package com.twu.biblioteca.Models;

import java.util.ArrayList;

/**
 * Created by ubuntu on 4/30/14.
 */
public class User {
    private String name;
    private String id;
    private ArrayList<? extends Item> issuedItems = new ArrayList<>();
    private String password;
    private String userName;
    private String email;
    private String contact;
    private boolean loggedIn;

    public User(String userName, String password) {
        this.userName=userName;
        this.password=password;
    }

    public boolean isLoggedIn() {
        return loggedIn;
    }

    public String getPassword() {
        return password;
    }

    public String getUserName() {
        return userName;
    }

    public String getId() {
        return id;
    }

    @Override
    public String toString() {
        return userName+" ,"+email+", "+contact;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean verifyPassword(String password) {
        return this.password.equals(password);
    }
}
